﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace chapter_3
{
    struct Dimension
    {
        public int width;
        public int height;
        public static int i;
        public Dimension(int width, int height)
        {
            this.width = width;
            this.height = height;
            i = 0;
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            Program p = new Program();
            //p.userName = "a";
            p.SetPassword("abc");
            Console.WriteLine(password);
            Dimension d = new Dimension(1,2);
            int i = 5;
            
            Console.WriteLine("width is :{0}\nheight is:{1}",d.width,d.height);
        }

        private string userName;
        public string UserName
        {
            get
            {
                return userName;
            }

            private set
            {
                userName = value;
            }
        }

        private static string password;
        void SetPassword(string pwd)
        {
            password = pwd;
            
        }
        

    }
}
